cmake_minimum_required(VERSION 3.5)

project(HSR_proj)

set(CMAKE_CXX_FLAGS "${CMAKE_XCC_FLAGS} -g -Wall -O2 -std=c++14")

find_package(ZLIB REQUIRED)



if(ZLIB_FOUND)
    message(STATUS "Found zlib: ${ZLIB_VERSION_STRING}")

    add_library(HSR SHARED M.cpp)

    include_directories(${CMAKE_CURRENT_SOURCE_DIR}/includes)

    add_executable(hsr hsr.cpp)

    target_link_libraries(hsr HSR)

    target_link_libraries(hsr ${ZLIB_LIBRARIES})
else()
    message(FATAL_ERROR "zlib not found")
endif()